import withSession from './../../../lib/session'

async function handler(req, res, session) {
    const userInfo = req.session.get('userInfo')
    res.json({ userInfo })
}

export default withSession(handler)